package cn.com.netedge.iot.frontend.datasave.model.freeze;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class EventModel {
    private Date evtTime;
    private int evtId;
    private int protocol;
    private int deviceId;
    private int deviceType;
    private Date saveDBTime;
    private String description;
    private String statusWord;

    public EventModel() {
    }

    public Date getEvtTime() {
        return evtTime;
    }

    public void setEvtTime(Date evtTime) {
        this.evtTime = evtTime;
    }

    public int getEvtId() {
        return evtId;
    }

    public void setEvtId(int evtId) {
        this.evtId = evtId;
    }

    public int getProtocol() {
        return protocol;
    }

    public void setProtocol(int protocol) {
        this.protocol = protocol;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public Date getSaveDBTime() {
        return saveDBTime;
    }

    public void setSaveDBTime(Date saveDBTime) {
        this.saveDBTime = saveDBTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatusWord() {
        return statusWord;
    }

    public void setStatusWord(String statusWord) {
        this.statusWord = statusWord;
    }

    public String formDateTime(Date date) {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return df.format(date);

    }
}
